package 第十二章_反射与内省.Bean_字符串转归类类型;

public class Emp{
    public String name;
    private int age;
    private float salary;
    public String getInfo(){
        return "name: "+name+" age: "+age+" salary: "+salary;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public float getSalary() {
        return salary;
    }

    public void setSalary(float salary) {
        this.salary = salary;
    }

    public Emp() {
    }

    public Emp(String name, int age, float salary) {
        this.name = name;
        this.age = age;
        this.salary = salary;
    }
}
